#include "ssd_global.h"
/***********************************************************************
 *    author: ymb
 *  封装 WRTL的代码函数
 ***********************************************************************/

// int warm_flag; ADFTL定义过
void WRFTL_Scheme(unsigned int *pageno,int *req_size,int operation);
void WRFTL_init_arr();
void WRFTL_Hit_WCMT(int blkno, int operation);
void WRFTL_Move_RCMT2MRU(int blkno, int operation);
void WRFTL_Move_RCMT2WCMT(int blkno, int operation);
void WRFTL_Write_Pre_Load(int *pageno, int *req_size);
void WRFTL_Read_Pre_Load(int *pageno, int *req_size);
void WRFTL_WCMT_Is_Full();
void WRFTL_Remove_Entry_In_WCMT();
void WRFTL_RCMT_Is_Full();
int WRFTL_Find_Victim_In_WCMT();
int not_in_cache(unsigned int pageno);

